package com.star.cat.common.parse;

import java.io.Serializable;

/**
 * 缓存key解析
 * @author liguangcai
 * @date 2018/08/29 14:26
 */
@SuppressWarnings("serial")
public abstract class KeyParse implements Serializable{

	public static final String SPLIT = "#"; // 分隔符
	
	/**
	 * 获取key
	 * @param key
	 * @param paramClasses
	 * @param params
	 * @return
	 */
	public String getKey(String key, Class<?>[] paramClasses, Object[] params){
		return buildKey(key, paramClasses, params);
	}
	
	/**
	 * 构建key
	 * @param key
	 * @param paramClasses
	 * @param params
	 * @return
	 */
	public abstract String buildKey(String key,Class<?>[] paramClasses,Object[] params);
	
}
